package diko_parent.eduservice.entity.frontVo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author Emma Li
 * @date 2020/12/11 - 21:36
 */
@ApiModel(value = "存储用户信息", description = "课程查询对象封装")
@Data
public class openId {

    @ApiModelProperty(value = "index")
    @TableId(value = "index", type = IdType.AUTO)
    private int index;

    @ApiModelProperty(value = "openId")
    @JsonSerialize(using = ToStringSerializer.class)
    private String openId;

    @ApiModelProperty(value = "id")
    private String id;

    @ApiModelProperty(value = "cate_id")
    private String cate_id;

    @ApiModelProperty(value = "name")
    private String name;

    @ApiModelProperty(value = "price")
    private String price;

    @ApiModelProperty(value = "number")
    private String number;

    @ApiModelProperty(value = "image")
    private String image;

    @ApiModelProperty(value = "is_single")
    private String is_single;

    @ApiModelProperty(value = "materials_text")
    private String materials_text;

}
